<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>qredisclient: /home/maker/projects/rdm/3rdparty/qredisclient/src/qredisclient/connection.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">qredisclient
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_1bcd59b52529ede8481d9843c654718a.html">qredisclient</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">connection.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;QObject&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;QList&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;QMap&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;QByteArray&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;QVariantList&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;QSharedPointer&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;QEventLoop&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;QTimer&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;QMutex&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;connectionconfig.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;exception.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;command.h&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;response.h&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;scancommand.h&quot;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_redis_client.html">RedisClient</a> {</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">class </span>AbstractTransporter;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">class </span>CommandExecutor;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">typedef</span> QMap&lt;int, int&gt; DatabaseList;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="struct_redis_client_1_1_server_info.html">   29</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_redis_client_1_1_server_info.html">ServerInfo</a></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="struct_redis_client_1_1_server_info.html">ServerInfo</a>();</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keywordtype">double</span> version;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">bool</span> clusterMode;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordtype">bool</span> sentinelMode;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    DatabaseList databases;    </div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_redis_client_1_1_server_info_1_1_parsed_server_info.html">   38</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_redis_client_1_1_server_info_1_1_parsed_server_info.html">ParsedServerInfo</a> : <span class="keyword">public</span> QHash&lt;QString, QHash&lt;QString, QString&gt;&gt;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        QVariantMap toVariantMap();</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    };</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="class_redis_client_1_1_server_info_1_1_parsed_server_info.html">ParsedServerInfo</a> parsed;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">static</span> <a class="code" href="struct_redis_client_1_1_server_info.html">ServerInfo</a> fromString(<span class="keyword">const</span> QString&amp; info);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;};</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_redis_client_1_1_connection.html">   53</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_redis_client_1_1_connection.html">Connection</a> : <span class="keyword">public</span> QObject</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;{</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    Q_OBJECT</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    ADD_EXCEPTION</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span>AbstractTransporter;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">enum class</span> Mode { Normal, PubSub, Cluster, Sentinel };</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_redis_client_1_1_connection_1_1_invalid_mode_exception.html">   62</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_redis_client_1_1_connection_1_1_invalid_mode_exception.html">InvalidModeException</a> : <span class="keyword">public</span> Connection::Exception {};</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="class_redis_client_1_1_connection.html">Connection</a>(<span class="keyword">const</span> <a class="code" href="class_redis_client_1_1_connection_config.html">ConnectionConfig</a> &amp;c, <span class="keywordtype">bool</span> autoConnect=<span class="keyword">true</span>);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="class_redis_client_1_1_connection.html">Connection</a>();</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> connect(<span class="keywordtype">bool</span> wait=<span class="keyword">true</span>);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isConnected();</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> disconnect();</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <a class="code" href="class_redis_client_1_1_connection_config.html">ConnectionConfig</a> getConfig() <span class="keyword">const</span>;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordtype">void</span> setConnectionConfig(<span class="keyword">const</span> <a class="code" href="class_redis_client_1_1_connection_config.html">ConnectionConfig</a> &amp;);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    Mode mode() <span class="keyword">const</span>;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">double</span> getServerVersion();</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">virtual</span> DatabaseList getKeyspaceInfo();</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="comment">/*</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">     * Hi-Level Operations API</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment">     */</span></div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="class_redis_client_1_1_connection.html#a57774e9e46824a93ae053f6a52508e35">  131</a></span>&#160;    <span class="keyword">typedef</span> QList&lt;QByteArray&gt; <a class="code" href="class_redis_client_1_1_connection.html#a57774e9e46824a93ae053f6a52508e35">RawKeysList</a>;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keyword">typedef</span> std::function&lt;void(const RawKeysList&amp;, const QString&amp;)&gt; RawKeysListCallback;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> getDatabaseKeys(RawKeysListCallback callback,</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                                 <span class="keyword">const</span> QString&amp; pattern=QString(<span class="stringliteral">&quot;*&quot;</span>),</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                                 uint dbIndex = 0);</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> getClusterKeys(RawKeysListCallback callback,</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                                <span class="keyword">const</span> QString &amp;pattern);</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keyword">typedef</span> QPair&lt;QString, int&gt; Host;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keyword">typedef</span> QList&lt;Host&gt; HostList;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    HostList getMasterNodes();</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="comment">/*</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="comment">     * Command execution API</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="comment">     */</span></div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordtype">void</span> command(<span class="keyword">const</span> <a class="code" href="class_redis_client_1_1_command.html">Command</a>&amp; cmd);</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordtype">void</span> command(QList&lt;QByteArray&gt; rawCmd, <span class="keywordtype">int</span> db = -1);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordtype">void</span> command(QList&lt;QByteArray&gt; rawCmd, QObject *owner,</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                 RedisClient::Command::Callback callback, <span class="keywordtype">int</span> db = -1);</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <a class="code" href="class_redis_client_1_1_response.html">Response</a> commandSync(<span class="keyword">const</span> <a class="code" href="class_redis_client_1_1_command.html">Command</a>&amp; cmd);</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <a class="code" href="class_redis_client_1_1_response.html">Response</a> commandSync(QList&lt;QByteArray&gt; rawCmd, <span class="keywordtype">int</span> db = -1);    </div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="comment">/*</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="comment">     * Aliases for ^ function</span></div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="comment">     */</span></div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <a class="code" href="class_redis_client_1_1_response.html">Response</a> commandSync(QString cmd, <span class="keywordtype">int</span> db = -1);</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <a class="code" href="class_redis_client_1_1_response.html">Response</a> commandSync(QString cmd, QString arg1, <span class="keywordtype">int</span> db = -1);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <a class="code" href="class_redis_client_1_1_response.html">Response</a> commandSync(QString cmd, QString arg1, QString arg2, <span class="keywordtype">int</span> db = -1);</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <a class="code" href="class_redis_client_1_1_response.html">Response</a> commandSync(QString cmd, QString arg1, QString arg2, QString arg3, <span class="keywordtype">int</span> db = -1);</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="class_redis_client_1_1_connection.html#af05a9c8b8c32205e9948ee241f27cc22">  214</a></span>&#160;    <span class="keyword">typedef</span> std::function&lt;void(QVariant, QString err)&gt;  <a class="code" href="class_redis_client_1_1_connection.html#af05a9c8b8c32205e9948ee241f27cc22">CollectionCallback</a>;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="class_redis_client_1_1_connection.html#a5501c5c8d3b4481a2e063ad4816284dc">  219</a></span>&#160;    <span class="keyword">typedef</span> std::function&lt;void(QVariant, QString err, bool final)&gt;  <a class="code" href="class_redis_client_1_1_connection.html#a5501c5c8d3b4481a2e063ad4816284dc">IncrementalCollectionCallback</a>;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> retrieveCollection(QSharedPointer&lt;ScanCommand&gt; cmd,</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                                    CollectionCallback callback);</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> retrieveCollectionIncrementally(QSharedPointer&lt;ScanCommand&gt; cmd,</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                                                 IncrementalCollectionCallback callback);</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> runCommand(<span class="keyword">const</span> <a class="code" href="class_redis_client_1_1_command.html">Command</a> &amp;cmd);</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    <span class="keywordtype">bool</span> waitForIdle(uint timeout);</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="comment">/*</span></div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="comment">     * Low level functions for modification</span></div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="comment">     * commands execution.</span></div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="comment">     */</span></div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="keywordtype">void</span> setTransporter(QSharedPointer&lt;AbstractTransporter&gt;);</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    QSharedPointer&lt;AbstractTransporter&gt; getTransporter() <span class="keyword">const</span>;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;signals:    </div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keywordtype">void</span> addCommandToWorker(<span class="keyword">const</span> <a class="code" href="class_redis_client_1_1_command.html">Command</a>&amp;);</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordtype">void</span> error(<span class="keyword">const</span> QString&amp;);</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="keywordtype">void</span> log(<span class="keyword">const</span> QString&amp;);</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="keywordtype">void</span> connected();</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="keywordtype">void</span> disconnected();</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="keywordtype">void</span> authOk();</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="keywordtype">void</span> authError(<span class="keyword">const</span> QString&amp;);</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="comment">// Cluster &amp; Sentinel</span></div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="keywordtype">void</span> reconnectTo(<span class="keyword">const</span> QString&amp; host, <span class="keywordtype">int</span> port);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <span class="keywordtype">void</span> createTransporter();</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordtype">bool</span> isTransporterRunning();</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <a class="code" href="class_redis_client_1_1_response.html">Response</a> internalCommandSync(QList&lt;QByteArray&gt; rawCmd);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="keywordtype">void</span> processScanCommand(QSharedPointer&lt;ScanCommand&gt; cmd,</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                            CollectionCallback callback,</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                            QSharedPointer&lt;QVariantList&gt; result=QSharedPointer&lt;QVariantList&gt;(),</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                            <span class="keywordtype">bool</span> incrementalProcessing=<span class="keyword">false</span>);</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="keywordtype">void</span> changeCurrentDbNumber(<span class="keywordtype">int</span> db);    </div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="keyword">protected</span> slots:</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="keywordtype">void</span> auth();</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <a class="code" href="class_redis_client_1_1_connection_config.html">ConnectionConfig</a> m_config;   </div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    QSharedPointer&lt;QThread&gt; m_transporterThread;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    QSharedPointer&lt;AbstractTransporter&gt; m_transporter;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keywordtype">int</span> m_dbNumber;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <a class="code" href="struct_redis_client_1_1_server_info.html">ServerInfo</a> m_serverInfo;</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    Mode m_currentMode;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    QMutex m_dbNumberMutex;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <span class="keywordtype">bool</span> m_autoConnect;    </div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordtype">bool</span> m_stoppingTransporter;</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    RawKeysListCallback m_wrapper;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;};</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;}</div><div class="ttc" id="namespace_redis_client_html"><div class="ttname"><a href="namespace_redis_client.html">RedisClient</a></div><div class="ttdef"><b>Definition:</b> command.h:8</div></div>
<div class="ttc" id="class_redis_client_1_1_command_html"><div class="ttname"><a href="class_redis_client_1_1_command.html">RedisClient::Command</a></div><div class="ttdoc">The Command class. </div><div class="ttdef"><b>Definition:</b> command.h:18</div></div>
<div class="ttc" id="class_redis_client_1_1_connection_html"><div class="ttname"><a href="class_redis_client_1_1_connection.html">RedisClient::Connection</a></div><div class="ttdoc">The Connection class Main client class. </div><div class="ttdef"><b>Definition:</b> connection.h:53</div></div>
<div class="ttc" id="class_redis_client_1_1_connection_html_a5501c5c8d3b4481a2e063ad4816284dc"><div class="ttname"><a href="class_redis_client_1_1_connection.html#a5501c5c8d3b4481a2e063ad4816284dc">RedisClient::Connection::IncrementalCollectionCallback</a></div><div class="ttdeci">std::function&lt; void(QVariant, QString err, bool final)&gt; IncrementalCollectionCallback</div><div class="ttdoc">IncrementalCollectionCallback. </div><div class="ttdef"><b>Definition:</b> connection.h:219</div></div>
<div class="ttc" id="struct_redis_client_1_1_server_info_html"><div class="ttname"><a href="struct_redis_client_1_1_server_info.html">RedisClient::ServerInfo</a></div><div class="ttdoc">The ServerInfo struct Represents redis-server information parsed from INFO command. </div><div class="ttdef"><b>Definition:</b> connection.h:29</div></div>
<div class="ttc" id="class_redis_client_1_1_connection_1_1_invalid_mode_exception_html"><div class="ttname"><a href="class_redis_client_1_1_connection_1_1_invalid_mode_exception.html">RedisClient::Connection::InvalidModeException</a></div><div class="ttdef"><b>Definition:</b> connection.h:62</div></div>
<div class="ttc" id="class_redis_client_1_1_connection_html_a57774e9e46824a93ae053f6a52508e35"><div class="ttname"><a href="class_redis_client_1_1_connection.html#a57774e9e46824a93ae053f6a52508e35">RedisClient::Connection::RawKeysList</a></div><div class="ttdeci">QList&lt; QByteArray &gt; RawKeysList</div><div class="ttdoc">RawKeysList. </div><div class="ttdef"><b>Definition:</b> connection.h:131</div></div>
<div class="ttc" id="class_redis_client_1_1_server_info_1_1_parsed_server_info_html"><div class="ttname"><a href="class_redis_client_1_1_server_info_1_1_parsed_server_info.html">RedisClient::ServerInfo::ParsedServerInfo</a></div><div class="ttdef"><b>Definition:</b> connection.h:38</div></div>
<div class="ttc" id="class_redis_client_1_1_connection_config_html"><div class="ttname"><a href="class_redis_client_1_1_connection_config.html">RedisClient::ConnectionConfig</a></div><div class="ttdoc">The ConnectionConfig class Supports loading settigns from JSON objects. </div><div class="ttdef"><b>Definition:</b> connectionconfig.h:16</div></div>
<div class="ttc" id="class_redis_client_1_1_response_html"><div class="ttname"><a href="class_redis_client_1_1_response.html">RedisClient::Response</a></div><div class="ttdef"><b>Definition:</b> response.h:12</div></div>
<div class="ttc" id="class_redis_client_1_1_connection_html_af05a9c8b8c32205e9948ee241f27cc22"><div class="ttname"><a href="class_redis_client_1_1_connection.html#af05a9c8b8c32205e9948ee241f27cc22">RedisClient::Connection::CollectionCallback</a></div><div class="ttdeci">std::function&lt; void(QVariant, QString err)&gt; CollectionCallback</div><div class="ttdoc">CollectionCallback. </div><div class="ttdef"><b>Definition:</b> connection.h:214</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
